package com.wms.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import java.time.LocalDateTime;

/**
 * 盘点报损表
 * @TableName tb_stocktaking_loss
 */
@TableName(value ="tb_stocktaking_loss")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TbStocktakingLoss {
    /**
     * 主键ID
     */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Integer id;

    /**
     * 损失数量
     */
    private Integer lossCount;

    /**
     * 损失类型(1 破损、2丢失)
     */
    @TableField(value = "loss_category")
    private Integer lossCategory;

    /**
     * 盘点信息ID
     */
    @TableField(value = "stocktaking_info")
    private Integer stocktakingInfo;

    /**
     * 操作员工ID
     */
    @TableField(value = "emp_id")
    private Integer empId;

    /**
     * SaaS标识
     */
    @TableField(value = "saas_id")
    private String saasId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 创建人账号
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 修改人账号
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 是否删除  1 未删除  2 已删除
     */
    @TableField(value = "is_del")
    private Integer isDel;
}
